//
//  Record.m
//  e-nurse
//
//  Created by  on 12/12/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "Record.h"

@implementation Record
@synthesize recordId = _recordId;
@synthesize highPressure = _highPressure;
@synthesize lowPressure = _lowPressure;
@synthesize heartRate = _heartRate;
@synthesize takenMedicine = _takenMedicine;
@synthesize description = _description;
@synthesize date = _date;
@synthesize method = _method;

-(id)initWithHighPressure:(float)hp lowPressure:(float)lp heartRate:(int)ht takenMedicine:(bool)takenMedicine description:(NSString *)desc date:(NSDate *)date
{
    self = [super init];
    if(self)
    {
        self.recordId = -1;
        self.highPressure = hp;
        self.lowPressure = lp;
        self.heartRate = ht;
        self.takenMedicine = takenMedicine;
        self.description = desc;
        self.date = date;
    }
    
    return self;
}

-(void)dealloc
{
    self.description = nil;
    self.date = nil;
    
    [super dealloc];
}

@end
